<?php if (!defined('MAX_ON')){echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";exit();} ?>
<?php if ($template_hook=='start'){ ?>
<?php }elseif ($template_hook=='1'){ ?>
	<link rel="stylesheet" type="text/css" href="<?php echo $max_domain; ?>/includes/pages/gallery/rater/css/rating_<?php echo $lang['header_dir']; ?>.css" />
	<table class="forum-board-forum-head" cellpadding="0" cellspacing="0">
		<tr><td class="forum-topic-subject"><?php echo $lang['page_title_my_images']; ?></td></tr>
	</table>
	
	<table class="forum-index" cellpadding="0" cellspacing="0">
	
		<tr>
			<td class="forum-index-td-middle-sub border-left" style="width: 40%;"><?php echo $lang['my_images_title']; ?></td>
			<td class="forum-index-td-topics-sub h_right" style="width: 20%; padding-<?php echo $lang['header_right']; ?>: 5px;"><?php echo $lang['my_images_date']; ?></td>
			<td class="forum-index-td-topics-sub h_right" style="width: 20%; padding-<?php echo $lang['header_right']; ?>: 5px;"><?php echo $lang['my_images_rating']; ?></td>
			<td class="forum-index-td-topics-sub border-right" style="width: 20%">&nbsp;</td>
		</tr>
<?php }elseif ($template_hook=='2'){ ?>
		<tr>
			<td class="forum-index-td-left h_right" style="padding: 8px;">
			
				<a href="<?php echo max_link('index.php?page=gallery&act=view-image&id=' . $row['id'], 'gallery/view-image/' . $row['id']); ?>"><?php echo $row['title']; ?></a>
			
			</td>
			
			<td class="forum-index-td-topics h_right" style="padding-<?php echo $lang['header_right']; ?>: 5px;">
			
				<?php echo $row['time']; ?>
				
			</td>
			<td class="forum-index-td-right h_right" style="padding-<?php echo $lang['header_right']; ?>: 5px;">
			
				<?php echo rating_bar($row['id'], 5, 'static3'); ?>
				
			</td>
			<td class="forum-index-td-right h_right" style="padding-<?php echo $lang['header_right']; ?>: 5px;">
			
				<a href="<?php echo max_link('index.php?page=gallery&act=my-images&sub=edit-image&id=' . $row['id'], 'gallery/my-images/edit-image/' . $row['id']); ?>">
					
					<img src="<?php echo $edit_icon_img; ?>" alt="<?php echo $lang['my_images_edit']; ?>" title="<?php echo $lang['my_images_edit']; ?>" />
				
				</a>
				
				<a href="<?php echo max_link('index.php?page=gallery&act=my-images&sub=delete-image&id=' . $row['id'], 'gallery/my-images/delete-image/' . $row['id']); ?>" onclick="javascript:return confirm('<?php echo $lang['my_images_remove_warning']; ?>')">
					
					<img src="<?php echo $delete_icon_img; ?>" alt="<?php echo $lang['my_images_remove']; ?>" title="<?php echo $lang['my_images_remove']; ?>" />
				
				</a>
				
			</td>
		</tr>
<?php }elseif ($template_hook=='3'){ ?>
	</table>
	
	<table class="forum-index-forum-footer" cellpadding="0" cellspacing="0">
		<tr><td class="forum-index-forum-footer-contents"> </td></tr>
	</table>
<?php } ?>